package br.com.felix.fwt.svg.transform;

public class SVGTransform {

	private StringBuilder strb;



	public SVGTransform() {
		strb = new StringBuilder();
	}



	public SVGTransform translate(int x, int y) {
		strb.append("translate(").append(x).append(",").append(y).append(")");
		return this;
	}



	public void translate(int x) {
		strb.append("translate(").append(x).append(")");
	}



	public void scale(float sx, float sy) {
		strb.append("scale(").append(sx).append(",").append(sy).append(")");
	}



	public void scale(int sx) {
		strb.append("scale(").append(sx).append(")");
	}



	public void rotate(float angle, int cx, int cy) {
		strb.append("rotate(").append(angle).append(",").append(cx).append(",").append(cy).append(")");
	}



	public void rotate(float angle) {
		strb.append("rotate(").append(angle).append(")");
	}



	public void skewX(float angle) {
		strb.append("skewX(").append(angle).append(")");
	}



	public void skewY(float angle) {
		strb.append("skewY(").append(angle).append(")");
	}



	public void matrix(int a, int b, int c, int d, int e, int f) {
		strb.append("matrix(").append(a).append(",").append(b).append(",").append(c).append(",").append(d).append(",").append(e).append(",").append(f).append(")");
	}
	
	public String toString(){
		return strb.toString();
	}

}
